# Project: Chat Box
# Makefile edited by Sean537 in 537 Studio

MODE=USER

ifeq ($(MODE), SERVER)
CPP      = g++
CC       = gcc
LIBS     = -static-libgcc -L"./lib" -lgraphics -lgdiplus -luuid -lmsimg32 -lgdi32 -limm32 -lole32 -loleaut32 -lwinmm
CXXFLAGS = $(CXXINCS) -std=c++11
CFLAGS   = $(INCS) -std=c++11
else

endif

BIN      = "./537Clock.exe"
RM       = del
endif

INCS     = -I"./include"
CXXINCS  = -I"./include"


.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after
	${BIN}

clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

server.o: server.cpp
	$(CPP) -c 537main.cpp -o 537main.o $(CXXFLAGS)

language.o: language.cpp
	$(CPP) -c language.cpp -o language.o $(CXXFLAGS)